package com.cn.crmsystem.mapper.systemMapper;

import com.cn.crmsystem.pojo.Department;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public interface DeptMapper {

    /**
     * 新增部门
     * @param map
     * @return
     */
    int addDept(HashMap<Object,Object> map);

    /**
     * 查询部门(可传入条件)
     * @param department
     * @return
     */
    List<Department> selectDept(Department department);

    int deleteDept(Integer id);

    int updateDept(HashMap<Object, Object> map);
}
